import axios from '@/libs/api.request'

export const getSysParam = (name) => {
  return axios.request({
    url: 'sys/param/getConfig?name=' + name,
    method: 'get'
  })
}

export const setSysParam = (name, value) => {
  let obj = {
    paramName: name,
    paramValue: value
  }
  return axios.request({
    url: 'sys/param/setConfig',
    method: 'post',
    data: obj
  })
}
